package com.mhkj.check.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mhkj.revise.plan.entity.PlanNode;
import com.mics.core.common.validate.annotation.NotNull;
import com.mics.core.common.validate.annotation.Validate;
import com.mics.core.system.base.entity.BaseDomain;

/**
 * 罚款明细
 * @author mics
 * @date 2018年8月27日
 * @version 1.0
 */
@Entity
@Table(name="t_fine_detail")
@Validate
public class FineDetail extends BaseDomain {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 5132049350416999727L;
	
	/**
	 * 人员姓名
	 */
	@Column(name="name",length=48)
	@NotNull(message="姓名不能为空")
	private String name;
	
	/**
	 * 员工id
	 */
	@Column(name="employee_id",length=48)
	@NotNull(message="员工id不能为空")
	private String employeeId;
	
	/**
	 * 罚款节点
	 */
	@JoinColumn(name="plan_node_id")
	@ManyToOne(fetch=FetchType.LAZY)
	private PlanNode planNode;
	
	/**
	 * 进度
	 */
	@Column(name="rate")
	private int rate=0;
	
	/**
	 * 逾期天数
	 */
	@Column(name="day")
	private int day=0;
	
	
	/**
	 * 罚款金额
	 */
	@Column(name="money",length=48)
	@NotNull(message="罚款金额不能为空")
	private String money;
	
	/**
	 * 备注
	 */
	@Column(name="remark",length=225)
	@NotNull(message="备注不能为空")
	private String remark;
	
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMoney() {
		return money;
	}
	public void setMoney(String money) {
		this.money = money;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getEmployeeId() {
		return employeeId;
	}
	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}
	public PlanNode getPlanNode() {
		return planNode;
	}
	public void setPlanNode(PlanNode planNode) {
		this.planNode = planNode;
	}
	public int getDay() {
		return day;
	}
	public void setDay(int day) {
		this.day = day;
	}
	public int getRate() {
		return rate;
	}
	public void setRate(int rate) {
		this.rate = rate;
	}

	
}
